<?php
/**
 * User: AK.
 * Date: 2019/7/17
 * 完成用户登录、注册、验证token等功能
 */
class Meeting extends CI_Model{
   //获取ICC会议信息列表
   public function get_app_meeting()
   {
       $this->db->select("id,name,begin_date,end_date,address,imgurl,inputdate");
	   $this->db->order_by('inputdate', 'DESC');
       $this->db->from('app_meeting');	   
       $query = $this->db->get();
       return $query->result_array();
   }

   //获取ICC会议详细信息
   public function get_app_meeting_detail($id)
   {
		$this->db->select("*");
		$this->db->where("id",$id);
		$this->db->from('app_meeting');	   
		$query = $this->db->get();
        return $query->row_array();    
   }
   
}